package com.atguigu.state;

/**
 * @program: design-patterns
 * @author: yangshen
 * @description:
 * @create: 2022-03-30 17:34
 **/
public class Client {
    public static void main(String[] args) {
        //创建活动对象，奖品池有5个奖品
        RaffleActivity activity = new RaffleActivity(3);

        //连续抽奖
        for (int i = 0; i < 50; i++) {
            System.out.println("-----------第" + (i+1) + "次抽奖");
            //第一步，点击扣除积分
            activity.deductMoney();
            //第二部，抽奖
            activity.raffle();
        }

    }
}
